package cn.micro.system.manage.common.exception;

import cn.micro.system.manage.common.result.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.ResponseStatus;

@Data
@AllArgsConstructor
public class SystemException extends RuntimeException{

    private Integer code;
    private String msg;

    public SystemException(String msg){
        this.code = ResultCodeEnum.FAIL.getCode();
        this.msg = msg;
    }


}
